package com.demo.deal_service.service;

import com.demo.deal_service.model.entity.Order;
import com.demo.deal_service.model.result.ResultEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

@FeignClient(name="order-service")
public interface OrderService{
    @RequestMapping(value = "/addOrder", method = RequestMethod.POST)
    public ResponseEntity<ResultEntity> addOrder(@RequestBody Order order);
}